#pragma once
#include<iostream>
#include<string>
#include<grpc++/grpc++.h>
#include "KafkaSender.grpc.pb.h"

using namespace com::htsc::grpc::service::trace;


class KafkaSenderClient
{ 
	public:
		KafkaSenderClient(std::shared_ptr<grpc::Channel> channel);		
		~KafkaSenderClient();
		std::string send(std::string& user);
		void changeChannel(std::shared_ptr<grpc::Channel> channel);

	private:
		std::unique_ptr<KafkaSender::Stub> stub_;
};
